{extend name="public/edit" /}

{block name="content"}
<div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-block">
        <input type="text" name="agency_number_nickname" value="{$info['agency_number_nickname']}" lay-verify="required" placeholder="点此请输入名称" autocomplete="off"
            class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
        <input type="text" name="agency_number_pass" value="" lay-verify="required" placeholder="点此请输入密码" autocomplete="off"
            class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">确认密码</label>
    <div class="layui-input-block">
        <input type="text" name="re_agency_number_pass" value="" lay-verify="required" placeholder="点此请输入密码"
            autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">是否显示</label>
    <div class="layui-input-block">
        <input type="radio" name="agency_number_is_show" value="1" {$info['agency_number_is_show'] == 1 ? 'checked' : ''} title="展示">
        <input type="radio" name="agency_number_is_show" value="0" {$info['agency_number_is_show'] == 0 ? 'checked' : ''} title="隐藏">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">权限id</label>
    <div class="layui-input-block">
        <select name="agency_number_rank_id" lay-filter="aihao">
            {if $rank}
                {foreach $rank as $k => $v}
                    <option value="$v['id']" {$info['agency_number_rank_id']==$v['id'] ? 'selected' : '' }>{$v['agency_rank_title']}</option>
                {/foreach}
            {/if}
        </select>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        views.verify(false).get();
    </script>
{/block}